package cn.edu.scau.cmi.zhangjunming.client;

import java.net.URL;

import cn.edu.scau.cmi.zhangjunming.interProgramming.GraduateStudent;
import cn.edu.scau.cmi.zhangjunming.interProgramming.Student;
import cn.edu.scau.cmi.zhangjunming.interProgramming.UndergraduateStudent;
import cn.edu.scau.cmi.zhangjunming.interProgramming.interProgramController;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class InterProgrammingClient extends Application{
    
	public void start(Stage primaryStage) throws Exception{
		try {
			interProgramController.setStage(primaryStage);
			Parent root = FXMLLoader.load(getFxmlUrl());
			primaryStage.setTitle("接口编程");
			primaryStage.setScene(new Scene(root));
			primaryStage.show();
		}catch(Exception event) {
			event.printStackTrace();
		}
		
	}
	
	private URL getFxmlUrl() {
	   interProgramController interProgramController = new interProgramController();
	   return interProgramController.getClass().getResource("interProgram.fxml");
	   
	}
	
	public static void main(String[] args) {
		launch(args);
	}

}
